copied to master
removed var
prepare()