refactored how entries are computed. made a separate method for it outside of client side to make app more secure