added return statements to void console operations