added code for name shortening