added a try/except block to try converting inputs into series objects