bug fix for wrong input format