fixed u/g script