about to refactor to flappy