use char arrays instead of string directly. nicer to look at