calculating user prfiles