calculate single instance of y
detail
finally starting to look sensible