inheritance sorted out