prepartion script