add logging stmt