added utility functions
tests for utility functions