added validation for construct variables