added parenthesis to some helper methods to avoid bad order of operations