added expand to php