add resize code
begin the efd code