allow $device as a paramater so we can use the define on the same device more than once, accomodating unique titles