changed methods to no longer require pointers