fixed bug with strcpy