got rid of the extern call