done with embedded ruby