prepare to store