added mode to prep