created build function to handle char creation