cleaned code, not working
works plugged in