removed unnecessary helper method
added unit tests. re-added helper method