some experiments with extend-type have been commented out
deleted duplicate sentence