add in/out judgement in send_user_access_duplicately_notification function