added assign name function to help with default errors