practicing out of separate function