now code properly formatted