code works, needs documentation