This compiles, works but doesnt take into account the case '->'