use Array.prototype.slice since arguments.slice does not exist