module for common functions.