forgot to replace the strlen call