initial implementation(bruce force)