fixes

made some fixes to the code. now properly displays and types