array related problem solved