tweak rails definition