modified app rb file