made changes to Open()