solution for basic call
refactor solution to basic call