- updates to main code