added debug in action