added measurement to alarm foreign key