fixing remaining amount