changed the fields to private but forgot to change equals method. clean
up a bit too.