inheritance

prints error to the log