simplified methods.js