removed unused variable 't'