made a upb directory tried to improve function
cleaned up some files