working tag inputs and method to build array for constraints