always returns -1, even if the call is successful. I added return statements to each of the function calls."