replaced with [].slice.call