fixed a compiler warning and make the interface compliant to the implementation