printing implemented code needs refactoring
missed