more spaghetti code