remove uneeded field in build method