check if .method matches