remove extra mode argument