Bug fixes- duty custom type - when should be there