expand function added