array ++ is to slow