added addAttributes method to transit