functions now called from the same file