cleaned up powermeter