put in check for empty name