fixed alot, but greensfunction doesnt work