new code sort of working
segpy fiddling