added screen scale function