add needed attributes