more functions after debugging