code refactoring
user gives points spec complete