improve ruby format