[vood] seperated some code