use len not strlen()