implement conversion for some simple syntax