check for return value