i need to figure out the right way to do this