optimize 4: erb for results