check function on photo