fixed struct seg -> seg

Fixed so that you don't need to refer to struct seg everywhere, only seg instead