add constraints on number of terminal on src