filename is now a parameter