script to get limits