added instance and class methods