updated versions and added more code