made methods private
formatting