fixing 340 error