implemented guard read case patterns.