testing customized functions