main():removed unnecessary port I/O assignments