using stack for bodies