added expand functionality