fix income logic