better error message or pattern property error
fix