checked return code for call