updated gem
updated for multi line measurements