prepare for shadow