attribute inheritance working