fixed bug in obj fun