chang y scale and logic

chang y scale and logic