fixed return code