actually write code properly