use tuple instead of element for os x