check for correct return value