changed method signature according with pull request requirements comments