updates for free boundary conditions
unified nodal actions to eliminate repeated code