preroutines