implemented measurement calculation