added functionality to calculate 3pe and navbar