no need to assign the client to a var here since it's only used once; could collapse these 2 lines to 1 instead