small fix to prepare