added name attribute
fixed name bug