error check on -1