removed unnescessary structural typing hack