add procedure for checking top3