cleaned up, fixed LED bug