updated physics script