comp class prototype