committing changes - simplified code