check correct return value