local expand working
local collapse implemented