continuing pulling out erb logic