add error check (should have been in 0.002007)