basic function and hacky main file for testing purposes