changed y axis limit method