removing unused bak
close method added