why didn't use .rb here but used later?