handling sgatextAlignment