creating view by voted functions