script error rectified