adjust type at both open