added all dummy code to work out type tests