add parent function in construct function