add \0 to the end