full orm model done and successfully tested