works!! going to clean up code now