adding common functions file