removing main() used in testing