gmc:intial working code