adding resize to script