script completed and its almost fine