end of prepares