An empirical investigation of the factors affecting customer lifetime value