added value/variable lookup function and started bin