wrote some helper functions
helper functions
some new stuff