all functions are methods
get rid of indeces