make record path dynamic