fixed lost functions