removed duplicate code from vtimer