Replace your total code by mine & test it.