fixing bugs in interface