organizing my code