some changes for problems in 'array' part