code style and tested maxNumCalls