added signal treatment