added another timeout function