eliminate unnecessary layer related code