optimize some arrays
optimize more arrays