getting ledstate