fix processAttributes method