remove uneeded array check