modal working, correct output from values

regexping left