baseline calculation algorithm changed