fixign and simplifiying to make it better illustrate the problem