refactor glc play program