implicated a function call and conditional statements