moved flickdirection to own method