not going to refactor entire function now