'probably should refactor this'