before using depth attachment