need to fix bug array object