fixed bug with strcat usage
fixed on other function