wrapp it in a function and prepare for merging