created delay funtions for the PIT