plotting scaling and other stuffs