create_res now takes the correct start and end values