fixed update, now working