corrections on scheme and main, but still not working