made the code a little more readable

changed the initialize method