correct array assigment