function made private
removed exception