more code for measure