controller nearly finished