updated to not use deprecated prog_–types