modified the functions to use a new way for listing customers