update from class main