fixing program exit, added seperate cases for laptop and FC