added updating stuff