got rid of useless min/max macros from reader