Added shops length constraint

Added shops length constraint