some methods for basic classes