commit modified functionality on expand function