[refac] made implementation shorter

	* added the size constraints to the pattern description