check for same function called