get rid of junk in extend function
v0.2.1