pattern matching still not working :(