check for name when creating classes