figured out how to actually do this correctly