updated for view count
updated for view count