fixed circular def of remove
few interface fixes
fixed integral type assumption bug