add sample values calculations