added create measurements functionality