add initial code
pass method as a kwarg