fixed appointment varify function