A numerical technique for treating complex geometries in compressible staggered cartesian code