Persons variable updated to private
tidy up code