updated code in auto. still don't know if it works yet