array still not working through