adding toString
adding toString
move pre-filter to common part