program seems to work now