prepare to change arrays
do maksing and visible