change has function