optimization of createfvm