put stuff in a separate function