remove unneeded array reverse