added call function while in main for communication