fixing Dangerous Eval security warning from Code Climate