minor refactoring
change method signature