class -> klass to avoid compile errors