2 hour function

needed to be put in a separate function