fix my function