added minus function to tell -1 the one that were on