Grasses, tube and planet realms, optimise code