renames switching to erb