raise error if no child class