making functions easier to read