initialized res and added test comments bruvo