added genclass