little error check.