there is something wrong with the has function.