created the return handler