update for new vartypes