fixed return check in create