removed un-needed checks for errors on return values of api calls