solve the before five problem