working on fatigue, contains bugs