added g's classes