tip is now calculated correctly