layer refinement added