cleaning up code format