fixed regex and variablename