prepare the work