clean up code syntax