handle errors, sort by likes count