if statement for initialize()