updated with scaling y axis