remove some (2 lines) duplication