remove parameter
remove prototype reference
minor refactoring