fix a bug in interface
ready to test?