add simple extend behavior function