remove extra declarations