make all functions inline