updated let statement in p3