add preferred_global_size
better localizing in gammak1