corrected maxscale to maxScale