test functions for final submission