very nearly working, something is wrong with the last 2 commands