drop toArray function in favor of [].slice.call