created function and called function